QT       += core gui multimedia multimediawidgets

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++11 console

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    new/audiothread.cpp \
    new/decodepacket.cpp \
    new/demuxmedia.cpp \
    new/demuxthread.cpp \
    new/resample.cpp \
    new/videothread.cpp \
    # stream/audiothread.cpp \
    # stream/decoder.cpp \
    # stream/demux.cpp \
    # stream/demuxthread.cpp \
    # stream/ffmpegutils.cpp \
    # stream/startffmpegthred.cpp \
    # stream/videothread.cpp \
    main.cpp \
    mainwindow.cpp

HEADERS += \
    new/audiothread.h \
    new/decodepacket.h \
    new/demuxmedia.h \
    new/demuxthread.h \
    new/resample.h \
    new/videothread.h \
    # stream/audiothread.h \
    # stream/decoder.h \
    # stream/demux.h \
    # stream/demuxthread.h \
    # stream/ffmpegconsts.h \
    # stream/ffmpegutils.h \
    # stream/startffmpegthred.h \
    # stream/videothread.h \
    mainwindow.h

FORMS += \
    mainwindow.ui

# INCLUDEPATH += D:\develop\opencv\newbuild\install\include
# INCLUDEPATH += D:\develop\opencv\newbuild\install\include\opencv2
# INCLUDEPATH += D:\develop\ffmpeg-6.1.1\include

# LIBS += D:\develop\opencv\newbuild\install\x64\mingw\lib\libopencv_world455.dll.a
# LIBS += -LD:\develop\ffmpeg-6.1.1\lib/ \
#          -lavformat \
#          -lavcodec \
#          -lavdevice \
#          -lavfilter \
#          -lavutil \
#          -lpostproc \
#          -lswresample \
#          -lswscale

INCLUDEPATH += D:\software\ffmpeg-6.1.1-full_build-shared\include
LIBS += -LD:\software\ffmpeg-6.1.1-full_build-shared\lib/ \
            -lavcodec \
            -lavdevice \
            -lavfilter \
            -lavformat \
            -lavutil \
            -lpostproc \
            -lswresample \
            -lswscale

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

RESOURCES += \
    res.qrc

DISTFILES += \
    stream/readme.md
